package com.spring.mongo.model;

import java.util.List;

import org.springframework.data.mongodb.core.mapping.Document;

import com.alibaba.fastjson.JSON;

@Document(collection = "income")
public class Income extends MongoCommonBean {

	String type;
	String doctor;
	Double price;
	Long ct;
	List<String> details;
	String bizid;
	Integer valid;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDoctor() {
		return doctor;
	}

	public void setDoctor(String doctor) {
		this.doctor = doctor;
	}

	public Double getPrice() {
		return price == null ? 0 : price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public int getFenPirce() {
		Double d = this.price * 100;
		return d.intValue();
	}

	public Long getCt() {
		return ct;
	}

	public void setCt(Long ct) {
		this.ct = ct;
	}

	public List<String> getDetails() {
		return details;
	}

	public void setDetails(List<String> details) {
		this.details = details;
	}

	public String getBizid() {
		return bizid;
	}

	public void setBizid(String bizid) {
		this.bizid = bizid;
	}

	public Integer getValid() {
		return valid;
	}

	public void setValid(Integer valid) {
		this.valid = valid;
	}

	@Override
	public String toString() {
		return "[Income:" + JSON.toJSONString(this) + "]";
	}

}
